<div class="content-form edit-aluno">
    <?php echo $this->partial('aluno/menu.phtml', array('urlbase'=>$this->urlbase,'urlfoto'=>$this->urlfoto,'modulo'=>$this->modulo,'controller' => $this->controller, 'action' => $this->action, 'data' => $this->data)); ?>
    
    <div class="content-list row_bc">
        
        <h2><?php echo $this->Menualuno_nom[$this->action];?> - <?php echo $this->lista['PUL_NOM']?></h2>

        <?php if($this->op == 'list'){ ?>
        <table id="tlist">
            <thead>
                <tr>
                    <th>Questão</th>
                    <th>Disciplina</th>
                    <th>Gabarito</th>
                    <th>Responta</th>
                    <th>Status</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach($this->result as $row){ ?>
                <tr>
                    <td><?php echo $row['PLR_QST']; ?></td>
                    <td><?php echo $row['DCP_NOM']; ?></td>
                    <td><?php echo $row['PLG_ALT']; ?></td>
                    <td><?php echo $row['PLR_ALT']; ?></td>
                    <td>
                        <?php 
                            if($row['PLR_ALT'] != $row['PLG_ALT']){
                                echo '<span style="color:#F00;">'.$row['PLG_ALT'].'</span>';
                            }else if($row['PLG_ALT'] > ''){
                                echo '<img src="'.$this->urlbase.'/public/media/images/correct.png" />';
                            }    
                        ?>
                    </td>
                </tr>
                <?php } ?>
            </tbody>
        </table>
        <?php } else if($this->op == 'edit'){ ?>
        <table id="tlist">
            <thead>
                <tr>
                    <th>Disciplina</th>
                    <th>Porcentagem</th>
                    <th>Qtd. de Respostas</th>
                    <th>Qtd. de Acertos</th>
                    <th class="bc">&nbsp;</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach($this->result as $row){ ?>
                <tr>
                    <td><?php echo $row['DCP_NOM']; ?></td>
                    <td><?php echo $row['PQD_POR']; ?>%</td>
                    <td><?php echo $row['PQD_TOT']; ?></td>
                    <td><?php echo $row['PQD_ACR']; ?></td>
                </tr>
                <?php } ?>
            </tbody>
        </table>
        <?php }  ?>
        
        <div class="row cnt-frm-btn">
            <a href="<?php echo $this->urlmodulo.'/'.$this->controller.'/'.$this->action.'/id/'.$this->data['ALU_ID']; ?>" class="btn-frm">voltar</a>
        </div>
    </div>
</div>